package com.atguigu.java.ai.langchain4j.assistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.V;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import reactor.core.publisher.Flux;

import java.util.Date;

@AiService(wiringMode = AiServiceWiringMode.EXPLICIT,
        chatMemoryProvider =  "XZmessageChatMemoryProvider",
        tools = "appointmentTools",
        contentRetriever = "contentRetrieverXiaozhiPincone",
        streamingChatModel =  "qwenStreamingChatModel"
)
public interface XiaoZhiAssistant {
    @SystemMessage(fromResource = "xaozhi-prompt-template.txt")
    Flux<String> chat(@MemoryId Long id, @UserMessage String UserMessage, @V("current_date")Date current_date);

}
